package net.wds.ssbus.modules.dbconfig.service.impl;

import net.wds.ssbus.common.utils.PageUtils;
import net.wds.ssbus.common.utils.Query;
import net.wds.ssbus.modules.dbconfig.dao.TbDbSourceTypeDao;
import net.wds.ssbus.modules.dbconfig.entity.TbDbSourceTypeEntity;
import net.wds.ssbus.modules.dbconfig.service.TbDbSourceTypeService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("tbDbSourceTypeService")
public class TbDbSourceTypeServiceImpl extends ServiceImpl<TbDbSourceTypeDao, TbDbSourceTypeEntity> implements TbDbSourceTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TbDbSourceTypeEntity> page = this.page(
                new Query<TbDbSourceTypeEntity>().getPage(params),
                new QueryWrapper<TbDbSourceTypeEntity>()
        );
        return new PageUtils(page);
    }

}